public class PC {
	CPU cpu;
	HardDisk HD;
	void setCPU(CPU c) {
		cpu = c;
	}
	void setHardDisk(HardDisk h) {
		HD = h;
	}
	void show(){
		System.out.println("当前cpu速度为："+cpu.getSpeed());
		System.out.println("当前硬盘容量为："+HD.getAmount());
	}
	void PC(){
	}
	void PC(CPU cpu){
	}
	void PC(HardDisk HD){
	}
	void PC(CPU cpu,HardDisk HD){
	}
}
